package forums.model;

import java.util.Date;

/*
 * Author       :       Willie Wheeler and John Wheeler
 * Book         :       'Spring In Practice' [Book written by Willie Wheeler and John Wheeler]
 */
public class Message {
	private Long id;
	private Forum forum;
	private String subject;
	private String author;
	private Date date;
	private boolean visible = true;
	
	public Message(Long id, Forum forum, String subject, String author, Date date) {
		this.id = id;
		this.forum = forum;
		this.subject = subject;
		this.author = author;
		this.date = date;
	}
	
	public Long getId() {
		return id;
	}
	
	public Forum getForum() {
		return forum;
	}
	
	public String getSubject() {
		return subject;
	}
	
	public String getAuthor() {
		return author;
	}
	
	public Date getDate() {
		return date;
	}
	
	public boolean isVisible() {
		return visible;
	}
	
	public void setVisible(boolean visible) {
		this.visible = visible;
	}
}
